home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000339_amos-request@svcs1.digex.net_Wed Sep 27 04:54:14 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  5KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id EAA23382;  for <mcox@access.digex.net> ; Wed, 27 Sep 1995 04:54:13 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id BAA26010 for amos-out; Wed, 27 Sep 1995 01:18:11 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id BAA26007 for <amos-list@svcs1.digex.net>; Wed, 27 Sep 1995 01:18:10 -0400
  4. Received: from disperse.demon.co.uk (pong.demon.co.uk [158.152.1.64]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id BAA10961;  for <amos-list@access.digex.net> ; Wed, 27 Sep 1995 01:18:02 -0400
  5. Received: by disperse.mail.demon.net id aa06926; 27 Sep 95 2:56 +0100
  6. Received: from [158.152.1.72] by disperse.mail.demon.net id aa29573;
  7.           23 Sep 95 10:15 +0100
  8. Received: from westmead.demon.co.uk by post.mail.demon.net id aa05877;
  9.           23 Sep 95 10:06 +0100
  10. From: Mark Carter <Mark@westmead.demon.co.uk>
  11. Organization:  None Whatsoever
  12. To: amos-list@access.digex.net
  13. Date:          Sat, 23 Sep 1995 10:06:56 +0000
  14. Subject:       Re: Bits and Pieces
  15. Priority: normal
  16. X-mailer: Pegasus Mail/Windows (v1.22)
  17. Message-ID:  <9509231006.aa05877@post.mail.demon.net>
  18. Status: RO
  19. X-Status: 
  20.  
  21. > Hi again!  Just found this message stuck here, I've been meaning to 
  22. > get back to it for ages!!
  23. > > > > Has anyone found a way of using a joystick in place of a mouse in 
  24. > > > > conjunction with interface programs - I have tried several methods 
  25. > > > > and failed :-(  I want to be able to move my joystick so that the 
  26. > > > > mouse pointer moves (that bits easy) and then when I press fire over 
  27. > > > > a button I want the interface program to recognise that that button 
  28. > > > > has been clicked - any ideas?
  29. > <bit bit about ZDIALOG cut out>
  30.  
  31. Yes, I've been using this one ever since it was included in amos :-||
  32.  
  33. > > > You could make the joystick move the mouse (say with AMAL to be 
  34. > > 
  35. > > Hmmn, can anyone confirm this?  I know the manual keeps on going on 
  36. > > about AMAL being much faster than their basic equivalents - but from 
  37. > > my own personal experience this is not true. I don't know.
  38. > AMAL may not be any quicker, but it does mean you can make your 
  39. > routine for moving the mouse using the joystick, stick it in at the 
  40. > beginning and it'll run quite happily in the background.  Avoids 
  41. > having to constantly call a procedure or insert extra commands 
  42. > everywhere.  Can just be controlled with AMAL UNFREEZE and AMAL 
  43. > FREEZE.
  44. > It doesn't sound as if speed is that vital for this particular 
  45. > example?
  46.  
  47. That's true - its just a matter of taste :-6
  48.   
  49. > > > quick) and then when the joystick button is pressed and the mouse is 
  50. > > > over the button it DIALOG UPDATEs the button to its pressed state and 
  51. > > > when you release it it DIALOG UPDATEs it back and continues.
  52. > > > 
  53. > > > Is this any help?
  54. > > 
  55. > > Thanks for your help.
  56. > > 
  57. > > I remember trying DIALOG UPDATE before but then I rejected it and I 
  58. > > cant remember why.  One reason may be the inability of the function 
  59. > > to cope with radio buttons (but I dont mind this TOO much).
  60. > Yeah, I'm sure it doesn't work with these as radio buttons are all 
  61. > assigned the same button number, aren't they?  (major pain!)
  62. > > Another reason may have been that I thought that the command does not
  63. > > execute the "Button Change" code, but instead just the first bit of code 
  64. > > which usually draws the button in whatever state its currently in - 
  65. > > understand...?
  66. > I'm sure it does... oh, then again, all my interface code has used 
  67. > the first bit which then is dependent on the ButtonPosition, I think. 
  68. >  What have you got in your button change bit?  Anything that can just 
  69. > be emulated in normal Amos?
  70. >  
  71. > > However, today I found out that this clearly is not the case.  
  72. > > Is it true that calling the DIALOG UPDATE (1,BUT,1-RDIALOG(1,BUT)) 
  73. > > command when the fire button is pressed and then the same command 
  74. > > when the fire button is released will EXACTLY emulate the clcik of a 
  75. > > mouse button on a button which features the BR0 command so that it 
  76. > > returns to its original position.
  77. > Not sure.  I would think it should, but I could be wrong.
  78.  
  79. I wonder....
  80. If you have a button which automatically returns to its default 
  81. status when you release the mouse button (using BR0;), would you get 
  82. the same result if you try to emulate this in amos by calling the 
  83. Dialog Update (1,BUT,1) followed by Dialog Update(1,BUT,0). (phew, 
  84. that was a long sentance!)  I've got a feeling that the Button Change 
  85. code would be executed twice - and this would be wrong.
  86.  
  87. I'm gonna test this out today - once and for all.
  88.  
  89. > --
  90. > Sorry it took me so long to reply, I think I first read it when I was 
  91. > drunk and there was one bit I couldn't get my head around!
  92.  
  93. Well, sorry`s not good enough ;-)
  94.  
  95. > Sorry if it's come too late!
  96.  
  97. You`re ok.
  98.  
  99. > How are you getting on with it?
  100.  
  101. 95% done - but still a long way to go!
  102.  
  103. Slow going at the moment - motivation is the problem.  I've done all 
  104. the interesting bits - its mainly gameplay left.
  105.  
  106.  
  107. Cheers,
  108.  
  109. Mark
  110.  
  111. Mark Carter
  112. e-mail: mark@westmead.demon.co.uk,   exet0007@sable.ox.ac.uk